<?php
$template_edit_one_pic = '
	<!-- BEGIN header -->
	<SCRIPT LANGUAGE="JavaScript">
	function textCounter(field, maxlimit) {
			if (field.value.length > maxlimit) // if too long...trim it!
			field.value = field.value.substring(0, maxlimit);
	}
	</script>
	<form method="post">
	<input type="hidden" name="id" value="'.$CURRENT_PIC[pid].'" />
<thead>
	<tr>
		<th colspan="3">'.$filename.'</th>
	</tr>
</thead>
<tbody>
	<tr>
		<td style="white-space: nowrap;">'.PIC_INFO.'</td>
		<td>'.$pic_info.'</td>
		<td align="center" rowspan="'.$THUMB_ROWSPAN.'">
			<img src="'.$thumb_url.'" alt="" /><br />
		</td>
	</tr>
</tbody>
<!-- END header -->
<!-- BEGIN main -->
<tbody>
	<tr>
		<td style="white-space: nowrap;">
			'.TITLE.'
		</td>
		<td width="100%" valign="top">
			<input type="text" style="width: 100%" name="title" maxlength="255" value="'.$CURRENT_PIC[title].'" class="textinput" />
		</td>
	</tr>
	<tr>
		<td valign="top" style="white-space: nowrap;">
			'.DESCRIPTION.'
		</td>
		<td valign="top">
			<textarea name="caption" rows="5" cols="40" wrap="virtual"  class="textinput" style="width: 100%;" onkeydown="textCounter(this, '.$CONFIG[max_img_desc_length].');" onkeyup="textCounter(this, '.$CONFIG[max_img_desc_length].');">'.$CURRENT_PIC[caption].'</textarea>
		</td>
	</tr>
	<tr>
		<td style="white-space: nowrap;">
			'.KEYWORDS.'
		</td>
		<td valign="top" width="100%">
			<input type="text" style="width: 100%" name="keywords" maxlength="255" value="'.$CURRENT_PIC[keywords].'" class="textinput" />
		</td>
	</tr>
</tbody>
<!-- END main -->
<!-- BEGIN user_field -->
	<tr>
		<td style="white-space: nowrap;">
			{FIELD_NAME}
		</td>
		<td valign="top" width="100%">
			<input type="text" style="width: 100%" name="{USER_FIELD}" maxlength="255" value="{USER_PIC}" class="textinput" />
		</td>
	</tr>
<!-- END user_field -->
<!-- BEGIN footer -->
<tfoot>
	<tr>
		<td colspan="3" align="center">
			<b><input type="checkbox" name="read_exif" value="1" class="checkbox" />'.READ_EXIF.'</b>&nbsp;
			<b><input type="checkbox" name="reset_vcount" value="1" class="checkbox" />'.RESET_VIEW_COUNT.'</b>&nbsp;
			<b><input type="checkbox" name="reset_votes" value="1" class="checkbox" />'.RESET_VOTES.'</b>&nbsp;
			<b><input type="checkbox" name="del_comments" value="1" class="checkbox" />'.DEL_COMM.'</b>&nbsp;
		</td>
	</tr>
	<tr>
		<td colspan="3">
			<input type="submit" value="'.APPLY.'" name="submitDescription" class="button" />
		</td>
	</tr>
</tfoot>
<!-- END footer -->
</form>
';
